package com.yiqi.zhiyuan.feature.msg.view.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yiqi.zhiyuan.R;
import com.yiqi.zhiyuan.entity.vo.MessageTypeVO;

import butterknife.BindView;

/**
 * @ProjectName: ZhiYuan
 * @Description: java类作用描述
 * @Author: lijuwen
 * @CreateDate: 2019/4/3 17:16
 * @UpdateUser: 更新者
 * @UpdateDate: 2019/4/3 17:16
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class NoticeMessageAdapter extends BaseQuickAdapter<MessageTypeVO, BaseViewHolder> {


    public NoticeMessageAdapter() {
        super(R.layout.item_message_notice);
    }

    @Override
    protected void convert(BaseViewHolder helper, MessageTypeVO item) {
        helper.setText(R.id.tv_msg_date,item.getCreateTime())
                .setText(R.id.tv_msg_title,item.getTitle())
                .setVisible(R.id.tv_msg_sign,item.getIsReaded()==0)
                .setText(R.id.tv_msg_content,item.getContent());
    }
}
